package com.sixth.health.servict.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sixth.core.entity.TestList;
import com.sixth.core.vo.R;
import com.sixth.health.mapper.TestListMapper;
import com.sixth.health.servict.TestListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: six-hospital-system
 * @description:
 * @author: 朱永奇
 * @create: 2024-08-24 10:33
 **/
@Service
public class TestListImpl extends ServiceImpl<TestListMapper,TestList> implements TestListService {
    @Autowired
    private TestListMapper testListMapper;

    /**
     * 获取健康测试列表
     * @return
     */
    @Override
    public R<List<TestList>> selectAll() {
        List<TestList> testLists = testListMapper.selectList();
        return R.ok(testLists);
    }
}